package com.his.dao.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author fall
 * @since 2022-11-28
 */
@Getter
@Setter
@TableName("t_interface")
@ApiModel(value = "Interface对象", description = "")
public class MInterface extends Model<MInterface> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "interface_id", type = IdType.AUTO)
    private Integer interfaceId;

    @TableField("`name`")
    private String name;

    @TableField("url")
    private String url;

    @TableField("is_delete")
    private Integer isDelete;

    @TableField("is_open")
    @TableLogic
    private Integer isOpen;


    @Override
    public Serializable pkVal() {
        return this.interfaceId;
    }

}
